//
//  YQLabel+CreateLabel.m
//  YiGuScience  
//
//  Created by 刘艳芹 on 2017/5/4.
//  Copyright © 2017年 刘艳芹. All rights reserved.
//

#import "YQLabel+CreateLabel.h"

@implementation YQLabel (CreateLabel)

-(instancetype)initWithFrame:(CGRect)frame title:(NSString *)title font:(UIFont *)font andTextColor:(UIColor *)textColor bgColor:(UIColor *)bgColor{
    self = [super initWithFrame:frame];
    if (self) {
        self.text=title;
        self.font=font;
        self.textColor=textColor;
        self.backgroundColor=bgColor;
        /** 默认NSTextAlignmentLeft */
        self.numberOfLines = NSTextAlignmentLeft;
    }
    return self;
}

@end
